package hcn.protocol.ods.report;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.xml.bind.annotation.XmlTransient;
import java.io.Serializable;

/**
 * Created by jinxin on 2016/7/14.
 */
public class LabAntiDetailBean implements Serializable{

    private static final long serialVersionUID = -1795050740902008153L;

    private String antiNo;      //药敏顺序号
    private InnerBean anti;     //药敏项目代码/名称
    private String bioId;      //细菌代码
    private InnerBean method;   //药敏检测方法
    private String KBResult;    //KB结果
    private String MICResult;   //MIC结果
    private String ETESTResult; //ETEST结果
    private String resultUnit;  //结果单位
    private String antiResult;  //耐药性结果

    public String getAntiNo() {
        return antiNo;
    }

    public void setAntiNo(String antiNo) {
        this.antiNo = antiNo;
    }

    @JsonIgnore
    @JsonGetter
    public InnerBean getAnti() {
        return anti;
    }

    public void setAnti(InnerBean anti) {
        this.anti = anti;
    }

    @XmlTransient
    public String getAntiId(){
        return anti != null ? anti.getText() : null;
    }

    @XmlTransient
    public String getAntiName(){
        return anti != null ? anti.getDisplayName() : null;
    }

    public String getBioId() {
        return bioId;
    }

    public void setBioId(String bioId) {
        this.bioId = bioId;
    }

    @JsonIgnore
    @JsonGetter
    public InnerBean getMethod() {
        return method;
    }

    public void setMethod(InnerBean method) {
        this.method = method;
    }

    @XmlTransient
    public String getMethodId(){
        return method != null ? method.getText() : null;
    }

    @XmlTransient
    public String getMethodName(){
        return method != null ? method.getDisplayName() : null;
    }

    @JsonProperty("KBResult")
    public String getKBResult() {
        return KBResult;
    }

    public void setKBResult(String KBResult) {
        this.KBResult = KBResult;
    }

    @JsonProperty("MICResult")
    public String getMICResult() {
        return MICResult;
    }

    public void setMICResult(String MICResult) {
        this.MICResult = MICResult;
    }

    @JsonProperty("ETESTResult")
    public String getETESTResult() {
        return ETESTResult;
    }

    public void setETESTResult(String ETESTResult) {
        this.ETESTResult = ETESTResult;
    }

    public String getResultUnit() {
        return resultUnit;
    }

    public void setResultUnit(String resultUnit) {
        this.resultUnit = resultUnit;
    }

    public String getAntiResult() {
        return antiResult;
    }

    public void setAntiResult(String antiResult) {
        this.antiResult = antiResult;
    }
}
